gtk: Empty gtkimmodule.h
authorBenjamin Otte <otte@redhat.com>
Tue, 8 Nov 2011 19:22:57 +0000 (20:22 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 8 Nov 2011 20:14:05 +0000 (21:14 +0100)
Move the remaining struct definition into gtkimcontextinfo.h and include
that header in gtk.h. gtkimmodule.h is now an empty header. We should
probably deprecate it somehow.

This is also necessary so headers used in gtk .c files don't include
gtk.h which in turn includes all the deprecated headers which we want to
avoid so we can include them with deprecation warnings turned off.

gtk/Makefile.am
gtk/gtk.h
gtk/gtkimcontextinfo.h [new file with mode: 0644]
gtk/gtkimmodule.c
gtk/gtkimmodule.h
gtk/gtkimmoduleprivate.h
gtk/gtkimmulticontext.c

index 57f7fa184ef0e068034cd62bf549a1b7d5f02bdb..4d9aa7c9036b03c6699877fe517294ffc844eca4 100644 (file)
@@ -249,6 +249,7 @@ gtk_public_h_sources =              \
        gtkimage.h              \
        gtkimagemenuitem.h      \
        gtkimcontext.h          \
+       gtkimcontextinfo.h      \
        gtkimcontextsimple.h    \
        gtkimmodule.h           \
        gtkimmulticontext.h     \
index 121df5e3ce3e17272033e4db5909f3eea8c25f23..fdba38201f62ddfc569d4249f5ce6dda50c93fc0 100644 (file)
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
 #include <gtk/gtkimage.h>
 #include <gtk/gtkimagemenuitem.h>
 #include <gtk/gtkimcontext.h>
+#include <gtk/gtkimcontextinfo.h>
 #include <gtk/gtkimcontextsimple.h>
 #include <gtk/gtkimmulticontext.h>
 #include <gtk/gtkinfobar.h>
diff --git a/gtk/gtkimcontextinfo.h b/gtk/gtkimcontextinfo.h
new file mode 100644 (file)
index 0000000..7c5f66c
--- /dev/null
@@ -0,0 +1,46 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2000 Red Hat Software
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#ifndef __GTK_IM_CONTEXT_INFO_H__
+#define __GTK_IM_CONTEXT_INFO_H__
+
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef struct _GtkIMContextInfo GtkIMContextInfo;
+
+struct _GtkIMContextInfo
+{
+  const gchar *context_id;
+  const gchar *context_name;
+  const gchar *domain;
+  const gchar *domain_dirname;
+  const gchar *default_locales;
+};
+
+
+G_END_DECLS
+
+#endif /* __GTK_IM_CONTEXT_INFO_H__ */
index 4b38d6872df4729eed376ef041a1e219eda28d82..fc90c227da50727834891b42fd6547af02bf5d7f 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <glib/gstdio.h>
 #include <gmodule.h>
-#include "gtkimmodule.h"
 #include "gtkimmoduleprivate.h"
 #include "gtkimcontextsimple.h"
 #include "gtksettings.h"
index 750e603506bc723466758503c20b7e42a4c8ffce..e2f195a6099c799d93323c29727393ba4eff404f 100644 (file)
 
 #include <gtk/gtk.h>
 
-G_BEGIN_DECLS
-
-typedef struct _GtkIMContextInfo GtkIMContextInfo;
-
-struct _GtkIMContextInfo
-{
-  const gchar *context_id;
-  const gchar *context_name;
-  const gchar *domain;
-  const gchar *domain_dirname;
-  const gchar *default_locales;
-};
-
 /* The following entry points are exported by each input method module
  */
 
@@ -46,6 +33,4 @@ void          im_module_exit   (void);
 GtkIMContext *im_module_create (const gchar              *context_id);
 */
 
-G_END_DECLS
-
 #endif /* __GTK_IM_MODULE_H__ */
index d559c285e772ce0c5cca2d5ad16abfe7adadfe60..7d673737f11abcb5c6cbf96dc37412a57f78eb0b 100644 (file)
@@ -21,7 +21,8 @@
 #define __GTK_IM_MODULE_PRIVATE_H__
 
 #include <gdk/gdk.h>
-#include <gtk/gtkimmodule.h>
+#include <gtk/gtkimcontext.h>
+#include <gtk/gtkimcontextinfo.h>
 
 G_BEGIN_DECLS
 
index c88294e53f69849afdfe05b43c55cfa29dd92f3a..66f309eb4c88b4d91a6d11901500c4733f091475 100644 (file)
@@ -23,7 +23,6 @@
 #include <locale.h>
 
 #include "gtkimmulticontext.h"
-#include "gtkimmodule.h"
 #include "gtkimmoduleprivate.h"
 #include "gtklabel.h"
 #include "gtkmain.h"